package com.bishe.demo.modules.tourism.service;

import com.bishe.demo.modules.common.entity.ResultEntity;
import com.bishe.demo.modules.tourism.entity.Route;
import com.bishe.demo.modules.tourism.entity.RouteSearchBean;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Description RouteService
 * @Author Lubb
 * @Date 2021/3/29 14:48
 */
public interface RouteService {
    ResultEntity<Route> addRoute(Route route);

    ResultEntity<Route> deleteRouteById(Integer id);

    ResultEntity<Route> updateRoute(Route route);

    Route getRouteById(Integer id);

    List<Route> getRoutes();

    PageInfo<Route> getRoutesBySearchBean(RouteSearchBean searchBean);
}
